@extends('layouts.tankuang')

@section('content')
    <!--startprint-->
   <form name="add_form" id="add_form" method="post" action="{{url('admin/units/edit',$id)}}" enctype="multipart/form-data">
        <input type="hidden" name="_token" value="{{ csrf_token() }}">
        <div id="div_print" style="margin-bottom: 40px;">
            <h2 class="text-center mg_b36 mg_t25">企事业单位基本情况登记表</h2>
            <table class="table-form table-border mg-auto">
                <tbody>
                <tr>
                    <td>项目名称</td>
                    <td colspan="3">{{$re->name}}</td>
                
                </tr>
                <tr>
                    <td>申请单位</td>
                    <td colspan="3"> 
                        <select id="company" name="unit_id" class="w150 input_all" style="width: 174px;" disabled>
                            <option value="">请选择</option>
                            @foreach($company as $v)
                                <option value="{{$v->id}}" @if($unit->id==$v->id) selected @endif>{{$v->name}}</option>
                            @endforeach
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>上级主管单位</td>
                    <td colspan="3">{{$re->up_unit}}</td>
                  
                </tr>
                <tr>
                    <td>市、区、派出所</td>
                    <td colspan="3">
                         
                                <select id="city" name="city" class="w150 input_all" style="width: 174px;" disabled>
                                    @if($ci)
                                     <option value="">{{$ci->name}}</option>
                                    @endif
                                </select>
                          
                         
                                <select id="area" name="area" class="w150 input_all" style="width: 174px;" disabled>
                                  <!--   <option value="">请选择</option> -->

                                   @if($ar)
                                     <option value="">{{$ar->name}}</option>
                                    @endif


                                </select>
                            
                          
                                <select id="org_id" name="org_id" class="w150 input_all" style="width: 174px;" disabled>
                                  <!--   <option value="">请选择</option> -->


                                   @if($or)
                                     <option value="">{{$or->name}}</option>
                                    @endif


                                </select>

                    </td>
                </tr>
                <tr>
                    <td >详细地址</td>
                    <td colspan="3">
                       {{$unit->address}}
                    </td>
                </tr>
                <tr>
                    <td>法人代表(主要负责人)</td>
                    <td>{{$unit->frdb_name}}</td>
                    <td>联系电话</td>
                    <td>{{$unit->frdb_phone}}</td>
               
                </tr>
                <tr>
                    <td>工程类别</td>
                    <td colspan="3"><input name="gclb" type="radio" value="1" @if($re->gclb==1) checked @endif disabled/>营业场所 &nbsp; <input name="gclb" type="radio" value="2" @if($re->gclb==2) checked @endif disabled/>金库 &nbsp; <input name="gclb" type="radio" value="3" @if($re->gclb==3) checked @endif disabled/>自助银行 &nbsp; <input name="gclb" type="radio" value="4" @if($re->gclb==4) checked @endif disabled/>自助机具</td>
                                </tr>
                <tr>
                    <td>工程属性</td>
                    <td colspan="3"><input name="gcsx" type="radio" value="1"  @if($re->gcsx==1) checked @endif disabled/>新建 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input name="gcsx" type="radio" value="2" @if($re->gcsx==2) checked @endif disabled/>改建</td>
                  
                </tr>
                <tr>
                    <td>风险等级</td>
                    <td>{{$re->fxdj}}</td>
                    <td>防护级别</td>
                    <td>{{$re->fhjb}}</td>
                
                </tr>
                <tr>
                     <td>报建时间</td>
                    <td>{{$re->bjsj}}</td>
                    <td>审批时间</td>
                    <td>{{$re->spsj}}</td>
               
                </tr>
                <tr>
                    <td>验收时间</td>
                    <td>{{$re->yssj}}</td>
                    <td>达标情况</td>
                    <td><input name="is_ok" type="radio" value="1"  @if($re->is_ok==1) checked @endif disabled/>合格 &nbsp; <input name="is_ok" type="radio" value="2" @if($re->is_ok==2) checked @endif disabled/>不合格 &nbsp; </td>
                
                </tr>
              
                </tbody>
            </table>
            <!--endprint-->
            <div class="wbt mg_t25 pd_b20 text-center">
                <a id="goToPageB" class="easyui-linkbutton dsp print" data-options="iconCls:'icon-print'" onclick="doPrint()">打印</a>
            </div>
        </div>
    </form>


 
    <script type="text/javascript">
        function doPrint() {
            bdhtml=window.document.body.innerHTML;
             sprnstr="<!--startprint-->";
             eprnstr="<!--endprint-->";
             prnhtml=bdhtml.substr(bdhtml.indexOf(sprnstr)+17);
             prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr));
             window.document.body.innerHTML=prnhtml;
             window.print();
        }
    </script>
@stop